package cn.sunxyz.core.scanner;

import java.util.Collection;

/**
 * Created by yangrd on 2017/5/19.
 */
public class ClassScannerHelper {

    private static class SingletonHolder {
        private static ClassScanner INSTANCE = new DefaultScanner();
    }

    public static final ClassScanner getClassScannerSingleton() {
        return SingletonHolder.INSTANCE;
    }

    public static Collection<Class<?>> scanner(String packagePath) {
        return getClassScannerSingleton().scanner(packagePath);
    }
}
